<!DOCTYPE html>
<html>
{include file="public/head" /}
<body class="zanpian-body">
<section class="content">
<div class="callout callout-title">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <h4>{$nav.title}</h4>
                {notempty name="nav.remark"}
                <p>{$nav.remark}</p>
                {/notempty}
</div>  
<div class="panel-body" id="contents">
<div class="panel-tool pb15">
<div class="row">
              <div class="col-md-8 col-sm-6 col-xs-6">
                <div id="toolbar" class="toolbar">
                <a form="#list" href="{:url('up')}" class="confirm btn btn-primary btn-disabled ajax-post disabled hidden-xs">更新</a> <a href="{:url('add')}" data-name="添加播放器" class="btn btn-success btn-add btn-editone"><i class="fa fa-plus"></i> 添加</a> <button type="button" id="plupload-addon" class="btn btn-navy plupload" data-url="{:url('import')}" data-mimetype="application/octet-stream" data-multiple="false" initialized="true" style="position: relative; z-index: 1;"><i class="fa fa-upload"></i> 导入</button> <a  href="{:url('diplay',array('status'=>1))}" form="#list" class="confirm btn btn-info btn-disabled  ajax-post disabled hidden-xs"><i class="fa fa-unlock"></i> 显示</a> <a  href="{:url('diplay',array('status'=>0))}" form="#list" class="confirm btn btn-warning btn-disabled  ajax-post disabled hidden-xs"><i class="fa fa-lock"></i> 隐藏</a> <a  href="{:url('del')}" form="#list" class="confirm btn btn-danger btn-del btn-disabled ajax-post disabled"><i class="fa fa-trash"></i> 删除</a><span id="selectedChks">已选择<strong></strong>记录</span>
                </div>
                <!-- /.toolbar -->
              </div>
             <div class="col-md-4 col-sm-6 col-xs-6"> 
              <div style="float:right">
                <select name="status" class="form-control select2 margin10" type="ajax-select">
                  <option value="{:url('index')}">采集</option>
                  <option value="{:url('index',array('status'=>1,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="status" value="1"}selected{/eq}>允许</option>
                  <option value="{:url('index',array('status'=>0,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="status" value="0"}selected{/eq}>禁止</option>
                </select>
              </div>              
              <div class="pull-right search">
                <select name="status" class="form-control select2 margin10" type="ajax-select">
                  <option value="{:url('index')}">状态</option>
                  <option value="{:url('index',array('display'=>1,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="display" value="1"}selected{/eq}>显示</option>
                  <option value="{:url('index',array('display'=>0,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="display" value="0"}selected{/eq}>隐藏</option>
                </select>
              </div>                                                                    
             </div>              
            </div>

</div>
<!-- /.panel-tool -->
    <div class="tab-content" >
              <form id="list" method="post" >
                <table id="table" class="table table-striped table-bordered table-hover" style="margin-top: 0px;" width="100%">
                   <thead>
                    <tr style="height:45px;">
                      <th style="text-align:center;vertical-align: middle; width:5%">
                      <label class="pretty success">
	                   <input type="checkbox" id="checkall" class="delcheckall"> 
	                    <label><i class="mdi mdi-check"></i></label>
	                  </label>
                      </th>
                      <th style="text-align:center;vertical-align: middle;">{eq name="orders" value="title desc"}<a href="{:url('index',array('status'=>$status,'type'=>'title','order'=>'asc','limit'=>$limit))}" class="text-link sort ajax-url">名称 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('index',array('status'=>$status,'type'=>'title','order'=>'desc','limit'=>$limit))}" class="text-link sort ajax-url">名称 <i class="fa fa-angle-down"></i></a>{/eq}</th>
                      <th style="text-align:center;vertical-align: middle;">{eq name="orders" value="name desc"}<a href="{:url('index',array('status'=>$status,'type'=>'name','order'=>'asc','limit'=>$limit))}" class="text-link sort ajax-url">标识 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('index',array('status'=>$status,'type'=>'name','order'=>'desc','limit'=>$limit))}" class="text-link sort ajax-url">标识 <i class="fa fa-angle-down"></i></a>{/eq}</th>
                      <th style="text-align:center;vertical-align: middle;" class="hidden-xs">版权跳转</th>
                      <th style="text-align:center;vertical-align: middle; width:10%" class="hidden-xs">{eq name="orders" value="oid desc"}<a href="{:url('index',array('status'=>$status,'type'=>'oid','order'=>'asc','limit'=>$limit))}" class="text-link sort ajax-url">排序 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('index',array('status'=>$status,'type'=>'oid','order'=>'desc','limit'=>$limit))}" class="text-link sort ajax-url">排序 <i class="fa fa-angle-down"></i></a>{/eq}</th>
                      <th style="text-align:center;vertical-align: middle;" class="hidden-xs">播放方式</th>
                      <th style="text-align:center;vertical-align: middle;" class="hidden-xs">解析</th>
                      <th style="text-align:center;vertical-align: middle;" class="hidden-xs">采集</th>
                      <th style="text-align:center;vertical-align: middle;" class="hidden-xs">显示</th>
                      <th style="text-align:center;vertical-align: middle;">视频</th>
                      <th style="text-align:center;vertical-align: middle;">操作</th>
                    </tr>
                  </thead>                
               <tbody>
               {notempty name="list"}
               {volist name="list" id="vo"}
               <tr>
                <td class="bs-checkbox" style="text-align:center;vertical-align:middle; font-size:14px">
                <label class="pretty success">
                <input name="id[]" type="checkbox" value="{$vo['play_id']}" id="checkbox"> 
	            <label><i class="mdi mdi-check"></i></label>
	            </label>
                </td>
                    <td style="text-align:center;vertical-align: middle;"><input class="form-control input-sm" name='play_title[{$vo.play_id}]' value='{$vo.play_title}' type="text" style="text-align:center; width:80%; margin:0 auto"></td>
                    <td style="text-align:center;vertical-align: middle;">{$vo.play_name}</td>  
                    <td style="text-align:center;vertical-align: middle;" class="hidden-xs"><input class="form-control input-sm" name='play_copyright[{$vo.play_id}]' value='{$vo.play_copyright}' type="text" style="text-align:center; width:50%; margin:0 auto"></td>
                    <td style="text-align:center;vertical-align: middle;" class="hidden-xs"><input class="form-control input-sm" name='play_oid[{$vo.play_id}]' value='{$vo.play_oid}' type="text" style="text-align:center; width:50%; margin:0 auto"></td> 
                    
                <td style="text-align:center;vertical-align: middle;" class="hidden-xs">{notempty name="vo.play_cloud"}<span class="btn btn-success btn-xs btn-success">本地</span>{else /}<span class="btn btn-success btn-xs btn-danger">云播</span>{/notempty}</td>
                    
                <td style="text-align:center;vertical-align: middle;" class="hidden-xs">{notempty name="vo.play_apiurl"}<span class="btn btn-info btn-xs btn-success">是</span>{else /}<span class="btn btn-info btn-xs btn-danger">否</span>{/notempty}</td> 
                   
               <td style="text-align:center;vertical-align: middle;" class="hidden-xs"> 
{eq name="vo.play_status" value="1"} <a class="btn btn-info btn-xs btn-facebook ajax-post" href="{:url('status',array('id'=> $vo['play_id'],'status'=>0))}">允许</a>{else /}<a class="btn btn-info btn-xs btn-danger ajax-post" href="{:url('status',array('id'=> $vo['play_id'],'status'=>1))}">禁止</a>{/eq}

               </td>                    
                    
                <td style="text-align:center;vertical-align: middle;" class="hidden-xs">
                {eq name="vo.play_display" value="1"}<a class="btn btn-info btn-xs btn-facebook ajax-post" href="{:url('diplay',array('id'=> $vo['play_id'],'status'=>0))}">显示</a>{else /}<a class="btn btn-info btn-xs btn-danger ajax-post" href="{:url('diplay',array('id'=> $vo['play_id'],'status'=>1))}">隐藏</a>{/eq}
                 </td>
               <td style="text-align:center;vertical-align: middle;"><a url="{:url('delplay',array('player'=>$vo['play_name'],'one'=>1))}" class="confirm btn btn-warning btn-xs play-del"> 删除数据</a></td>  
                <td style="text-align:center;vertical-align: middle;">
                <a href="{:url('export',array('id'=>$vo['play_id']))}" class="btn btn-default btn-xs">导出</a> <a href="{:url('edit',array('id'=>$vo['play_id']))}"  data-name="编辑" class="btn btn-success btn-editone btn-xs"><i class="fa fa-pencil"></i></a> <a href="{:url('del',array('id'=>$vo['play_id']))}" class="confirm btn btn-danger btn-xs confirm ajax-post"><i class="fa fa-trash-o"></i></a>   
                  </td>
              </tr>
              {/volist}
                 {else/}<tr><td style="text-align:center;vertical-align: middle;" colspan="11" >抱歉，没有找到相关内容！</td></tr>{/notempty} 
            </tbody>
                </table>
              </form>
            </div>
                        {gt name="list->lastPage()" value="1"}
           <div class="panel-page">
              <div class="pull-left panel-page-info hidden-xs"><span class="pagination-info">共{$list->total()}条 {$list->currentPage()}/{$list->lastPage()} </span><span class="page-list">每页显示 {$list->listRows()} 条</span></div>
              <div class="panel-page-url ajax-page">
               <ul class="pagination"> {$list->render()} <div class="panel-page-select pull-left"><select class="select2 ajax-select" data-url="{:url_page(request()->action(),request()->param(),1)}"><option value="10" {eq name="limit" value="10"}selected{/eq}>10 条/页</option><option value="20" {eq name="limit" value="20"}selected{/eq}>20 条/页</option><option value="30" {eq name="limit" value="30"}selected{/eq}>30 条/页</option><option value="40" {eq name="limit" value="40"}selected{/eq}>40 条/页</option><option value="50" {eq name="limit" value="50"}selected{/eq}>50 条/页</option><option value="99" {eq name="limit" value="99"}selected{/eq}>99 条/页</option></select></div><div class="panel-page-jump "><input type="input" name="page" id="page" min="1" value="{$list->currentPage()}" class="form-control"/><input type="button" value="跳 转" data-url="{:url_page(request()->action(),request()->param())}" class="btn btn-default ajax-jump" /></div></ul>
              </div>
            </div>
           <!-- /.panel-page --> 
            {/gt}
         </div>
         <!-- /.panel-body --> 
        </section>
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.play();
});	
</script>
</body>
</html>
